module.exports = class extends think.cmswing.rest {
  async getAction() {
    const data = this.getData();
    const res =await this.model('document_appdocs').where(data).select();
    for (let r of res) {
      const url = await this.model('ext_attachment_pic').where({id: ['IN',r.tupian]}).getField('path');
      console.log('url='+url);
      r.url = url;
    }
    console.log('res='+res);
    return this.success(res,'查询成功');
  }
};
